package IO;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class FludhDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./images/bos.txt");
        BufferedOutputStream bos  = new BufferedOutputStream(fos);
        String line = "妹妹说紫色很有韵味";
        byte [] date =line.getBytes(StandardCharsets.UTF_8);
        bos.write(date);

        bos.flush();
        System.out.println("输出完毕");
        bos.close();
    }
}
